<?php $this->append ("scripts", "newblogentry") ?>

<form action="<?php echo Gene::makeLink($object) ?>/edit/content" method="post" class="editing">

<p class="fieldlabel"><label for="entrytitle">Entry Title:</label></p>
<p class="field"><input type="text" id="entrytitle" name="objtitle" size="32" value="<?php _e($object['title']) ?>" /></p>

<p class="fieldlabel"><label for="formobjcontent">Message:</label></p>
<p class="field"><?php $this->display('objects/enhancedinput', array('rows' => 12, 'required' => true, 'type' => 'blog', 'edit' => $object)) ?></p>

<p class="fieldlabel">Categories:</p>
<p class="field"><span id="entrycategories">
<?php foreach ($categories as $i): ?>
	<label><input name="categories[]" type="checkbox" value="<?php _e($i['label']) ?>" <?php if (in_array($i['label'], $entrycategories)): ?>checked="checked"<?php endif; ?> /><?php _e($i['label']) ?> (<?php echo $i['objects'] ?>)</label><br />
<?php endforeach; ?></span><span id="extracategories"></span></p>

<?php $this->display ("objects/edit/revisioninfo") ?>

<p class="formcontrols"><input type="submit" value="Edit Blog Entry" class="btn_focus" /></p>

</form>